<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<form id="form_task_statuschange" class="panel-body form-horizontal form-padding">
    <input type="hidden" name="taskId" id="taskId" value="${taskId}"/>
    <div class="form-group">
        <label class="col-md-2 control-label">状态变更</label>
        <div class="col-md-10">
            <div class="input-group">
                <div class="radio">
                    <!-- Inline radio buttons -->
                    <input type="radio" name="txtStatus" id="txtStatus1Selected" class="magic-radio" value="验收完成" checked="checked">
                    <label for="txtStatus1Selected">验收完成</label>

                    <input type="radio" name="txtStatus" id="txtStatus2Selected" class="magic-radio" value="任务关闭">
                    <label for="txtStatus2Selected">任务关闭</label>

                </div>
            </div>
        </div>
    </div>
</form>

<script>

    function fn_task_statuschange_save(callback) {
        __form_save('form_task_statuschange', '<%=path%>/activiti/task/scsave',
            function(data){
                if(data.state == 1){
                    callback(data.data);
                } else {
                    callback();
                }
            }, function () {
                callback();
            });
    }

</script>
